package com.jufanshare.myblog.entity;
import java.math.*;
import java.util.Date;
import java.sql.Timestamp;
import org.beetl.sql.core.annotatoin.Table;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


/* 
* 
* gen by beetlsql 2019-01-23
*/
@Table(name="myblog.comment")
public class Comment   {
	public interface CommentGroup{};
	private Integer id ;
	@NotNull(message = "文章编号不能为空",groups = {CommentGroup.class})
	private Integer articleid ;
	private Integer userid ;
	private String commentstate ;
	@NotBlank(message = "留言不能为空",groups = {CommentGroup.class})
	private String commenttext ;
	private String nickname ;
	private Date commentdatetime ;
	private String keyWord;

	//业务字段
	private String headImg;

	public Comment() {
	}

	public Integer getId(){
		return  id;
	}
	public void setId(Integer id ){
		this.id = id;
	}

	public Integer getArticleid(){
		return  articleid;
	}
	public void setArticleid(Integer articleid ){
		this.articleid = articleid;
	}

	public Integer getUserid(){
		return  userid;
	}
	public void setUserid(Integer userid ){
		this.userid = userid;
	}

	public String getCommentstate(){
		return  commentstate;
	}
	public void setCommentstate(String commentstate ){
		this.commentstate = commentstate;
	}

	public String getCommenttext(){
		return  commenttext;
	}
	public void setCommenttext(String commenttext ){
		this.commenttext = commenttext;
	}

	public String getNickname(){
		return  nickname;
	}
	public void setNickname(String nickname ){
		this.nickname = nickname;
	}

	public Date getCommentdatetime(){
		return  commentdatetime;
	}
	public void setCommentdatetime(Date commentdatetime ){
		this.commentdatetime = commentdatetime;
	}

	public String getKeyWord() {
		return keyWord;
	}

	public void setKeyWord(String keyWord) {
		this.keyWord = keyWord;
	}

	public String getHeadImg() {
		return headImg;
	}

	public void setHeadImg(String headImg) {
		this.headImg = headImg;
	}
}
